package com.example.study.design.singleton;

/**
 * 懒汉模式-静态内部类
 *
 * @author duckquan
 */
public class LazyInternal {

    private LazyInternal() {
    }

    public static LazyInternal getInstance() {
        return Internal.instance;
    }

    public static class Internal {
        private static LazyInternal instance = new LazyInternal();
    }

}
